/* AIER Business Page - Darker Theme */

.aier-page {
    background: #0a0a0a;
    color: #e0e0e0;
}

/* Dark Navigation */
.navbar-dark {
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.navbar-dark .logo a {
    color: #ffffff;
}

.navbar-dark .nav-menu a {
    color: #e0e0e0;
}

.navbar-dark .nav-menu a:hover,
.navbar-dark .nav-menu a.active {
    color: #00d4ff;
}

.navbar-dark .dropdown-menu {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

.navbar-dark .dropdown-menu a:hover {
    background: #2a2a2a;
    color: #00d4ff;
}

/* AIER Hero Section */
.aier-hero {
    position: relative;
    padding: 8rem 0;
    background: #0a0a0a;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-overlay {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

/* Glitch Effect */
.glitch {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: #00d4ff;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff00aa;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff88;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 20% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(40% 0 40% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, -2px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.25rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: #0f0f0f;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.service-card p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* White Papers Section */
.whitepapers-section {
    padding: 5rem 0;
    background: #0a0a0a;
}

.whitepapers-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 3rem;
}

.whitepapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.whitepaper-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.whitepaper-card:hover {
    border-color: #00d4ff;
    background: #1f1f1f;
}

.whitepaper-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.whitepaper-excerpt {
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.whitepaper-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    display: inline-block;
}

.whitepaper-link:hover {
    transform: translateX(5px);
}

.whitepapers-cta {
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #00d4ff;
    color: #0a0a0a;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* Blog Filtered Section */
.blog-filtered {
    padding: 5rem 0;
    background: #0f0f0f;
}

.blog-filtered h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 3rem;
}

.filtered-posts {
    max-width: 800px;
    margin: 0 auto;
}

.aier-post {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.aier-post:hover {
    border-color: #00d4ff;
    background: #1f1f1f;
}

.aier-post .post-date {
    color: #666;
    font-size: 0.875rem;
}

.aier-post h3 {
    margin: 0.5rem 0;
}

.aier-post h3 a {
    color: #00d4ff;
    text-decoration: none;
}

.aier-post p {
    color: #b0b0b0;
    margin: 0;
}

/* Tech Stack Section */
.tech-stack {
    padding: 5rem 0;
    background: #0a0a0a;
}

.tech-stack h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 3rem;
}

.tech-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tech-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.tech-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tech-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00d4ff;
}

.tech-note {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.tech-note p {
    color: #b0b0b0;
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: #00d4ff;
    color: #0a0a0a;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background: #00a8cc;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

/* Dark Footer */
.footer-dark {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
}

.footer-dark a {
    color: #b0b0b0;
}

.footer-dark a:hover {
    color: #00d4ff;
}

.footer-dark h4 {
    color: #00d4ff;
}

@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .whitepapers-grid {
        grid-template-columns: 1fr;
    }
}
/* Service card link styling */
.service-card {
    position: relative;
    padding-bottom: 2rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--purple-dark, #6366F1);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--purple-light, #8B5CF6);
    transform: translateX(5px);
}
