/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #111;
    --text-color: #f0f0f0;
    --accent-color: #00c2c7;
    --secondary-text: #aaa;
    --header-height: 80px;
}

/* Forces the scrollbar to always be present, preventing layout shift */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.9);
    /* Using RGB of --primary-bg for consistency */
    backdrop-filter: blur(5px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo-svg {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color 0s 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, top 0.3s ease 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.3s ease, transform 0.3s ease 0.3s;
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    transition: top 0.3s ease, transform 0.3s ease 0.3s;
}


/* Hero Section (Homepage) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

#heroCanvasContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#heroCanvasContainer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 950px;
}

.hero h1,
.hero .tagline {
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero h1 strong {
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--accent-color);
    display: inline-block;
    cursor: pointer;
    text-shadow: none;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: scale(1.05);
}

/* ==========================================================================
   MAIN CONTENT & PAGE LAYOUT
   ========================================================================== */

.content-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-section .subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 3.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.blog-listing-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
}


/* ==========================================================================
   GRIDS, CARDS, AND OTHER COMPONENTS
   ========================================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.grid-item {
    background-color: #1a1a1a;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 194, 199, 0.1);
}

.grid-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.grid-item p {
    color: var(--secondary-text);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* About Section Specifics */
.mission-statement {
    font-style: italic;
    color: var(--accent-color);
    text-align: center;
    margin: 2rem auto 1rem auto;
    font-size: 1.2rem;
    max-width: 850px;
}

.about-text {
    text-align: center;
    max-width: 850px;
    margin: 2rem auto 0 auto;
    color: var(--secondary-text);
}

/* Contact Section Specifics */
.contact-details {
    text-align: center;
}

.contact-info {
    margin-top: 2.5rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.contact-social {
    margin-top: 2.5rem;
}

.social-links a {
    color: var(--secondary-text);
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.15);
}

.social-links svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ==========================================================================
   BLOG & ARTICLE STYLES
   ========================================================================== */

.blog-list {
    display: grid;
    gap: 40px;
}

.blog-card {
    background-color: #1a1a1a;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 194, 199, 0.1);
}

.blog-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.blog-card h3 a {
    color: var(--text-color);
}

.blog-card h3 a:hover {
    color: var(--accent-color);
}

.blog-card .blog-excerpt {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card .blog-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.blog-card .read-more {
    font-weight: bold;
    color: var(--accent-color);
}

.blog-card .read-more:hover {
    text-decoration: underline;
}

/* Homepage Blog Section */
.blog-list-home {
    max-width: 800px;
    margin: 0 auto;
}

.blog-card-home {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 35px;
    text-align: center;
}

.blog-card-content h3 {
    font-size: 1.8rem;
}

.blog-card-content h3 a {
    color: var(--text-color);
}

.blog-card-content h3 a:hover {
    color: var(--accent-color);
}

.blog-card-content .read-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: bold;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

/* Article Content Styles (used inside blog post) */
.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content a {
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: #ccc;
}

.article-content strong {
    color: var(--text-color);
}


/* ==========================================================================
   ARTICLE IMAGES
   ========================================================================== */

.article-image {
    margin: 2.5rem 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    /* A subtle background in case the image loads slowly or is transparent */
    background-color: #1a1a1a;
}

.article-image figcaption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-style: italic;
    line-height: 1.4;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.footer-tagline {
    display: block;
    margin-top: 5px;
    font-style: italic;
}


/* Responsive Design */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: #1a1a1a;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding-top: calc(var(--header-height) + 40px);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 25px 0;
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    nav ul li a {
        font-size: 1.25rem;
        padding: 12px 20px;
        display: block;
    }

    nav ul li a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo-svg {
        height: 35px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }

    .hero h1,
    .hero .tagline {
        text-shadow: none;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2.1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .grid-item {
        padding: 30px;
    }

    .blog-card h3,
    .blog-card-content h3 {
        font-size: 1.4rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }
}