/* NeoralAI - Futuristic AI Blog with Dark Neon Theme */

/* Base Styles & Variables */
:root {
    --primary-color: #00f3ff;
    --secondary-color: #ff00e4;
    --accent-color: #7c00ff;
    --background-dark: #0a0e17;
    --background-darker: #050812;
    --background-light: #111827;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --box-shadow: 0 4px 20px rgba(0, 243, 255, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --max-width: 1200px;
    --glow-effect: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
    background-image: 
        radial-gradient(circle at 20% 35%, rgba(124, 0, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 75% 44%, rgba(0, 243, 255, 0.1) 0%, transparent 30%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-shadow: var(--glow-effect);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

button, .btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--background-darker);
}

.btn-primary:hover {
    box-shadow: var(--glow-effect);
    transform: translateY(-2px);
    color: var(--background-darker);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: var(--glow-effect);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-muted);
}

.btn-tertiary:hover {
    color: var(--text-color);
}

blockquote {
    border-left: 3px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(0, 243, 255, 0.05);
    border-radius: var(--border-radius);
}

blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--primary-color);
}

section {
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(5, 8, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.logo-container h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

nav ul li {
    padding: 0;
    margin: 0;
}

nav ul li::before {
    display: none;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 6rem 1.5rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.hero-image::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    transform: translate(1rem, 1rem);
    z-index: -1;
    opacity: 0.3;
    filter: blur(30px);
}

/* Featured Posts Section */
.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
}

.post-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.post-card .btn-secondary {
    margin: 0 1.5rem 1.5rem;
}

/* Info Section */
.info-section {
    text-align: center;
}

.info-section h2 {
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
}

.info-card .icon {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-muted);
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 0, 255, 0.1), rgba(0, 243, 255, 0.1));
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 4rem auto;
}

.newsletter h2 {
    margin-bottom: 0.5rem;
}

.newsletter p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--background-darker);
    color: var(--text-color);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.3);
}

/* Footer */
footer {
    background: var(--background-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-small {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.footer-links ul li::before {
    display: none;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
}

.footer-social h4 {
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-light);
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-darker);
    box-shadow: var(--glow-effect);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 800px;
    background: var(--background-darker);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    z-index: 1000;
    display: none;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cookie-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-link:hover {
    color: var(--primary-color);
}

/* Blog Page Styles */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.post-image {
    height: 100%;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.post-content {
    padding: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.interactive-element {
    background: rgba(124, 0, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(124, 0, 255, 0.3);
}

.interactive-element h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.chart-placeholder, .demo-placeholder, .quiz-placeholder, .timeline-placeholder {
    background: rgba(5, 8, 18, 0.5);
    border-radius: var(--border-radius);
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}

/* About Page Styles */
.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h1 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.team-section {
    text-align: center;
}

.team-section h2 {
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}

.team-member h3 {
    margin: 1.5rem 0 0.25rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
}

.team-member .social-icons {
    margin: 1.5rem 0;
}

.partnerships {
    text-align: center;
    margin-top: 5rem;
}

.partnerships h2 {
    margin-bottom: 1rem;
}

.partnerships > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.partner {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.partner:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.partner img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Contact Page Styles */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--background-darker);
    margin: 0 auto 1rem;
    border: 1px solid var(--border-color);
}

.info-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.contact-form-container {
    background: var(--background-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.contact-form-container h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--background-darker);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.3);
}

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

.map-section h2 {
    margin-bottom: 2rem;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.social-connect {
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 0, 255, 0.1), rgba(0, 243, 255, 0.1));
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 4rem;
}

.social-connect h2 {
    margin-bottom: 0.75rem;
}

.social-connect p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    background: var(--background-darker);
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-btn:hover {
    background: var(--background-light);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--background-light);
    margin: 10% auto;
    padding: 2rem;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    border: 1px solid var(--primary-color);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-button:hover {
    color: var(--primary-color);
}

.thank-you-content {
    text-align: center;
}

.check-icon {
    width: 60px;
    height: 60px;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .about-mission {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 300px;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cookie-banner {
        width: calc(100% - 2rem);
        bottom: 1rem;
    }
    
    .social-large {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
    }
}
