/* 
* Quantum Casual Website Styles
* A modern, clean design for a quantum computing and procedural generation blog
*/

/* Base styles and variables */
:root {
    --primary-color: #6200ea;
    --primary-light: #9d46ff;
    --primary-dark: #0a00b6;
    --secondary-color: #00e676;
    --secondary-light: #66ffa6;
    --secondary-dark: #00b248;
    --text-color: #212121;
    --text-light: #757575;
    --background-color: #ffffff;
    --background-alt: #f5f7fa;
    --border-color: #e0e0e0;
    --success-color: #00c853;
    --error-color: #d50000;
    --warning-color: #ffd600;
    --info-color: #2196f3;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-code: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
}

h1 {
    font-size: 4.8rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.6rem;
}

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

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

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

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

.btn-tertiary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 5rem;
    width: auto;
}

nav ul {
    display: flex;
    gap: 3rem;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.8rem;
    padding: 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

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

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.hero .subtitle {
    font-size: 2.4rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* Features Section */
.features {
    padding: 8rem 0;
    background-color: var(--background-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 6rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.feature-card {
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    background-color: var(--primary-light);
    color: white;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.feature-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Comparison Table Section */
.comparison {
    padding: 8rem 0;
    background-color: var(--background-alt);
}

.comparison h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.table-container {
    overflow-x: auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    background-color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.6rem;
}

thead {
    background-color: var(--primary-color);
    color: white;
}

th, td {
    padding: 1.5rem 2rem;
    text-align: left;
}

th {
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: var(--background-alt);
}

tbody tr:hover {
    background-color: rgba(157, 70, 255, 0.05);
}

/* Recent Posts Section */
.recent-posts {
    padding: 8rem 0;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 4rem;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex: 1;
}



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

/* Blog Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1.5rem;
}

.blog-content {
    padding: 6rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.blog-post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
}

.blog-post-card .post-image {
    height: 300px;
}

.blog-post-card .post-content {
    padding: 3rem;
}

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

.blog-post-card h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 50px;
    background-color: var(--primary-color);
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
}

.category-list a:hover {
    color: var(--primary-color);
}

.popular-post-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-content h4 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.popular-post-content .post-date {
    font-size: 1.3rem;
    color: var(--text-light);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscribe-form input {
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--background-alt);
    color: var(--text-color);
    border-radius: var(--border-radius);
    font-size: 1.4rem;
    transition: var(--transition);
}

.tag-cloud a:hover {
    background-color: var(--primary-light);
    color: white;
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--shadow-md);
}

.contact-details {
    margin: 4rem 0;
}

.contact-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-icon {
    background-color: rgba(98, 0, 234, 0.1);
    color: var(--primary-color);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.social-connect h3 {
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--background-alt);
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--shadow-md);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1.6rem;
    transition: var(--transition);
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--text-light);
}

.map-section {
    padding: 6rem 0;
    background-color: var(--background-alt);
}

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

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}



.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
}

/* About Page Styles */
.about-content {
    padding: 6rem 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 6rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values {
    margin-bottom: 6rem;
}

.values h2 {
    text-align: center;
    margin-bottom: 5rem;
}

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

.value-card {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card .icon {
    background-color: rgba(98, 0, 234, 0.1);
    color: var(--primary-color);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.team {
    padding: 6rem 0;
    background-color: var(--background-alt);
}

.team h2 {
    text-align: center;
    margin-bottom: 5rem;
}

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

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-member h3 {
    margin: 2rem 0 0.5rem;
    font-size: 2rem;
}

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

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

.team-member .social-icons {
    justify-content: center;
    margin-bottom: 2rem;
}

.timeline {
    padding: 6rem 0;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 5rem;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 30px;
    margin-left: auto;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -10px;
}

.timeline-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 400px;
}

.timeline-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: #1a1a2e;
    color: white;
    padding: 6rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo img {
    max-height: 5rem;
    margin-bottom: 2rem;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom .social-icons {
    margin-bottom: 1rem;
}

.footer-bottom .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-bottom .social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a2e;
    color: white;
    padding: 2rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1.5rem;
}

.cookie-policy {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.cookie-policy a {
    color: white;
    text-decoration: underline;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.popup-header h3 {
    margin-bottom: 0;
}

.close-popup {
    font-size: 2.4rem;
    cursor: pointer;
}

.popup-body {
    padding: 2.5rem;
    text-align: center;
}

.popup-body p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    html {
        font-size: 58%;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 80px;
    }
    
    .timeline-dot {
        left: 20px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
    }
}

@media screen and (max-width: 767px) {
    html {
        font-size: 55%;
    }
    
    header .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero .subtitle {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem 1rem;
    }
    
    .feature-card, 
    .post-card,
    .value-card,
    .team-member {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
}
