/* Global Reset & Fonts */
body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, .editorial-text {
    font-family: 'Cormorant Garamond', serif;
}

/* --- UTILITIES --- */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- THE GLASS TILE --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures equal height in grid */
}

/* Mobile check for padding */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
}

.glass-card:hover {
    border-color: #f4a4b4;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Link Styles */
.abstract-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f4a4b4;
    font-weight: 600;
    padding-top: 1.5rem;
    transition: opacity 0.3s;
}

.abstract-link:hover {
    opacity: 0.8;
}

/* Navigation Hover Line */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #f4a4b4;
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* --- HERO ELEMENTS --- */
#neural-canvas {
    /* Styles are also handled by Tailwind classes in index.php now, 
       but keeping this as backup */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
}

/* --- CLEAN MARQUEE --- */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap; /* Crucial for ticker effect */
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite; /* Slowed down slightly for readability */
}

/* Pause animation on hover for better UX */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-block;
    padding: 0 4rem; /* More space between items */
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    color: #888;
    transition: color 0.3s;
}

.marquee-item:hover {
    color: #f4a4b4;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}