/* 
 * Quantum Edge - Futuristic Online Business Blog
 * Dark design with glowing white and black accents
 * Complex futuristic layout
 */

/* --- Base Styles --- */
:root {
    --bg-dark: #050510;
    --bg-darker: #030308;
    --bg-light: #0d0d1a;
    --accent-primary: #6e00ff;
    --accent-secondary: #00c6ff;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glow-primary: 0 0 10px rgba(110, 0, 255, 0.8), 0 0 20px rgba(110, 0, 255, 0.4);
    --glow-secondary: 0 0 10px rgba(0, 198, 255, 0.8), 0 0 20px rgba(0, 198, 255, 0.4);
    --glow-white: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 16px rgba(255, 255, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --border-radius: 6px;
    --transition-speed: 0.3s;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Space Grotesk', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at top right, rgba(110, 0, 255, 0.05), transparent 400px),
        radial-gradient(circle at bottom left, rgba(0, 198, 255, 0.05), transparent 400px);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.glow {
    text-shadow: var(--glow-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.glow::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(8px);
    opacity: 0.5;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: rgba(110, 0, 255, 0.1);
    border: 1px solid rgba(110, 0, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn:hover {
    background-color: rgba(110, 0, 255, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.glow-btn {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 0 0 rgba(110, 0, 255, 0);
    transition: all 0.3s ease;
}

.glow-btn:hover {
    box-shadow: var(--glow-primary);
    background: var(--gradient-primary);
    background-size: 200% 100%;
    background-position: right center;
}

.spell-check-btn {
    margin-left: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spell-check-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    box-shadow: var(--glow-white);
}

/* --- Header --- */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo img {
    height: 50px;
    width: 50px;
    margin-right: 15px;
    border-radius: 50%;
    box-shadow: var(--glow-primary);
}

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition-speed);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    text-shadow: var(--glow-white);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    padding: 80px 0;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--gradient-primary);
    filter: blur(20px);
    opacity: 0.3;
    z-index: 0;
}

/* --- Page Header --- */
.page-header {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

/* --- Featured Posts Section --- */
.featured-posts {
    padding: 60px 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.posts-grid.full-width {
    grid-template-columns: 1fr;
}

.post-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-speed);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(110, 0, 255, 0.2);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.posts-grid.full-width .post-card {
    flex-direction: row;
    align-items: stretch;
}

.posts-grid.full-width .post-image {
    width: 300px;
    height: auto;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.post-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.post-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-meta .date {
    margin-right: 20px;
}

.read-more {
    align-self: flex-start;
    color: var(--accent-secondary);
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
    margin-top: auto;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-speed);
}

.read-more:hover {
    color: white;
    text-shadow: var(--glow-white);
}

.read-more:hover::after {
    width: 100%;
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

/* --- About Section --- */
.about-content {
    padding: 40px 0 80px;
}

.about-mission, .about-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.mission-text h2, .vision-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.mission-text p, .vision-text p {
    margin-bottom: 20px;
}

.mission-image img, .vision-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

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

.team-member {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(110, 0, 255, 0.2);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--gradient-primary);
    background-clip: padding-box;
    box-shadow: var(--glow-primary);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-member p:first-of-type {
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 15px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 40px 0 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2, .contact-form-container h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-item .icon {
    margin-right: 15px;
    color: var(--accent-secondary);
    min-width: 24px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-family: var(--font-main);
}

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

.map-section {
    padding: 40px 0 80px;
    text-align: center;
}

.map-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Newsletter --- */
.newsletter {
    background-color: var(--bg-light);
    padding: 80px 30px;
    border-radius: 12px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent, 
        rgba(110, 0, 255, 0.05), 
        transparent, 
        rgba(0, 198, 255, 0.05), 
        transparent
    );
    transform: rotate(45deg);
    animation: moveGradient 15s linear infinite;
}

@keyframes moveGradient {
    0% {
        transform: translateX(-50%) translateY(50%) rotate(45deg);
    }
    100% {
        transform: translateX(50%) translateY(-50%) rotate(45deg);
    }
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 30px 0 0 30px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-main);
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form .btn {
    border-radius: 0 30px 30px 0;
}

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

.modal-content {
    background-color: var(--bg-light);
    margin: 15% auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(110, 0, 255, 0.2);
    box-shadow: 0 0 30px rgba(110, 0, 255, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-speed);
}

.close-modal:hover {
    color: white;
    text-shadow: var(--glow-white);
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 30px;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-darker);
    padding: 80px 30px 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.footer-logo h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.link-column ul {
    list-style: none;
}

.link-column ul li {
    margin-bottom: 10px;
}

.link-column ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-speed);
}

.link-column ul li a:hover {
    color: white;
    padding-left: 5px;
    text-shadow: var(--glow-white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-speed);
    color: var(--text-secondary);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    max-width: 1400px;
    margin: 50px auto 0;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Cookie Notice --- */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-content a {
    color: var(--accent-secondary);
    margin-left: 20px;
}

.cookie-content a:hover {
    text-decoration: underline;
}

/* --- Blog Posts Section --- */
.blog-posts {
    padding: 40px 0 80px;
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-logo, .footer-contact {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-mission, .about-vision {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .posts-grid.full-width .post-card {
        flex-direction: column;
    }
    
    .posts-grid.full-width .post-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 15px;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .link-column {
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        margin: 0 auto;
    }
    
    .cookie-content a {
        margin: 10px 0 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 25px;
        margin: 30% auto;
        width: 90%;
    }
}
