:root {
    --bg-color: #2a0508;
    --primary-color: #ff2d55;
    --secondary-color: #ff4d00;
    --accent-color: #ff8800;
    --flow-color: #00d4ff;
    --flow-color-deep: #0066ff;
    --text-main: #ffffff;
    --text-dim: #c9a3a8;
    --glass: rgba(255, 45, 85, 0.07);
    --glass-border: rgba(255, 45, 85, 0.25);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
    --glow-shadow: 0 0 20px rgba(255, 45, 85, 0.5);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 30%, #8a1224 0%, #500a18 45%, #2a050e 100%);
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease-out;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(42, 5, 8, 0.82);
}

/* FIX: Syncopate is an all-caps-only font. The logo must use Inter so
   "Mind Matrix 52" renders in real mixed case. text-transform: none is explicit. */
.logo {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: none;
}

.logo span {
    color: var(--flow-color);
    text-shadow: 0 0 12px var(--flow-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.btn-nav {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    background: rgba(255, 45, 85, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    max-width: 94vw;
    margin-left: auto;
    margin-right: auto;
}

.title-line {
    display: block;
}

/* Blue flowing-light shimmer for a tech feel */
.gradient-text {
    background: linear-gradient(90deg, #0066ff 0%, #00d4ff 25%, #ccfaff 50%, #00d4ff 75%, #0066ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.55));
    animation: flow-light 4s linear infinite;
}

@keyframes flow-light {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn-primary {
    padding: 1rem 2.8rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(255, 45, 85, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 45, 85, 0.7);
}

.btn-secondary {
    padding: 1rem 2.8rem;
    border: 1px solid var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
}

/* Visual Elements */
.matrix-sphere {
    position: absolute;
    width: 800px;
    height: 800px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.12), inset 0 0 80px rgba(0, 212, 255, 0.08);
    animation: pulse 6s infinite ease-in-out;
}

/* Rotating blue light arc on the sphere ring */
.matrix-sphere::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--flow-color);
    border-right-color: rgba(0, 212, 255, 0.55);
    filter: drop-shadow(0 0 12px var(--flow-color));
    animation: sphere-spin 5s linear infinite;
}

@keyframes sphere-spin {
    to { transform: rotate(360deg); }
}

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

/* Pillars Section */
.pillars {
    padding: 120px 10%;
    background: linear-gradient(180deg, #2a0508 0%, #4a0a16 100%);
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.pillar-card {
    background: var(--glass);
    padding: 4rem 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--glass-border));
    opacity: 0;
    transition: opacity 0.4s;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 45, 85, 0.2);
}

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

.pillar-card .icon {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.pillar-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pillar-card p {
    color: var(--text-dim);
}

/* Vision Section */
.vision {
    padding: 120px 10%;
    position: relative;
}

.vision-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
}

.vision-text h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.vision-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-dim);
}

.glass-card {
    background: var(--glass);
    padding: 4rem;
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    font-style: italic;
    font-size: 1.8rem;
    text-align: center;
    border-left: 5px solid var(--primary-color);
    max-width: 600px;
    box-shadow: 0 0 40px rgba(255, 45, 85, 0.15);
}

/* Footer */
footer {
    padding: 80px 10% 40px;
    background: #1c040a;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand .logo {
    font-size: 1.4rem;
}

.footer-links a {
    color: var(--text-dim);
    margin-left: 2rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.8rem;
    color: #444;
}

/* Global Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
