/* ============================================
   PORTAL PAGE STYLES
   ============================================ */

.portal-page {
    background: #0a0a0a;
    color: #fff;
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transform: scaleX(0);
}

.intro-line:nth-child(1) { top: 30%; }
.intro-line:nth-child(2) { top: 50%; }
.intro-line:nth-child(3) { top: 70%; }

.intro-glitch {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 0, 0.1) 2px,
        rgba(255, 0, 0, 0.1) 4px
    );
    opacity: 0;
    pointer-events: none;
}

.intro-text {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.5rem;
    opacity: 0;
    transform: scale(0.8);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.1);
}

/* Scroll Progress */
.portal-progress {
    background: linear-gradient(90deg, #ff0040, #00ffff, #ff0040);
    background-size: 200% 100%;
    animation: progressGradient 3s linear infinite;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Hero Section */
.portal-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title span {
    display: block;
    position: relative;
}

.hero-title span:nth-child(1) { 
    font-size: 0.5em; 
    letter-spacing: 1rem;
    opacity: 0.7;
}
.hero-title span:nth-child(2) { 
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title span:nth-child(3) { 
    font-size: 1.2em;
    background: linear-gradient(135deg, #ff0040 0%, #ff4080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title span:nth-child(4) { 
    font-size: 0.6em; 
    letter-spacing: 0.5rem;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.portal-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ff0040 0%, #ff4080 100%);
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.portal-cta::before {
    background: linear-gradient(135deg, #ff4080 0%, #ff0040 100%);
}

.portal-cta:hover {
    color: #fff;
}

.portal-cta i {
    animation: bounceDown 1.5s ease infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    animation: fadeInUp 1s ease 2s both;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 0.6; transform: translateX(-50%) translateY(0); }
}

/* Dimensions Section */
.dimensions-section {
    padding: 8rem 2rem;
    position: relative;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.dimension-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dimension-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.dimension-card:hover .dimension-bg {
    opacity: 0.2;
}

.fear-card .dimension-bg {
    background: linear-gradient(135deg, #4a0000 0%, #1a0000 100%);
}

.logic-card .dimension-bg {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
}

.chaos-card .dimension-bg {
    background: linear-gradient(135deg, #660066 0%, #1a001a 100%);
}

.order-card .dimension-bg {
    background: linear-gradient(135deg, #006633 0%, #001a0d 100%);
}

.dimension-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.fear-card .dimension-icon { color: #ff4444; }
.logic-card .dimension-icon { color: #4488ff; }
.chaos-card .dimension-icon { color: #ff44ff; }
.order-card .dimension-icon { color: #44ff88; }

.dimension-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.3rem;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.dimension-desc {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.dimension-stats {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dimension-hover-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.fear-card .dimension-hover-effect {
    background: radial-gradient(circle, rgba(255, 68, 68, 0.3) 0%, transparent 70%);
}

.logic-card .dimension-hover-effect {
    background: radial-gradient(circle, rgba(68, 136, 255, 0.3) 0%, transparent 70%);
}

.chaos-card .dimension-hover-effect {
    background: radial-gradient(circle, rgba(255, 68, 255, 0.3) 0%, transparent 70%);
}

.order-card .dimension-hover-effect {
    background: radial-gradient(circle, rgba(68, 255, 136, 0.3) 0%, transparent 70%);
}

.dimension-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.dimension-card:hover .dimension-hover-effect {
    width: 300%;
    height: 300%;
}

/* About Section */
.about-section {
    padding: 8rem 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item i {
    font-size: 1.25rem;
    color: #ff0040;
}

/* Brain Visualization */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-visualization {
    position: relative;
    width: 300px;
    height: 300px;
}

.brain-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: rotateRing 20s linear infinite;
    border-top-color: #ff0040;
}

.ring-2 {
    width: 75%;
    height: 75%;
    animation: rotateRing 15s linear infinite reverse;
    border-right-color: #00ffff;
}

.ring-3 {
    width: 50%;
    height: 50%;
    animation: rotateRing 10s linear infinite;
    border-bottom-color: #ff0040;
}

@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #fff;
    animation: pulseBrain 2s ease infinite;
}

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

/* Stats Section */
.stats-section {
    padding: 6rem 2rem;
}

/* Featured Section */
.featured-section {
    padding: 8rem 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.featured-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.featured-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.featured-image {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.2) 0%, rgba(0, 255, 255, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.featured-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-link {
    color: #ff0040;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.featured-link:hover {
    gap: 1rem;
}

/* CTA Section */
.portal-cta-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    position: relative;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        order: -1;
    }
    
    .brain-visualization {
        width: 200px;
        height: 200px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .dimension-card {
        min-height: 280px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title span:nth-child(1),
    .hero-title span:nth-child(4) {
        letter-spacing: 0.3rem;
    }
}
