/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1e5a8a;
    --primary-light: #4fb3d9;
    --accent: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #6c7a89;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1e5a8a 0%, #4fb3d9 100%);
    --gradient-accent: linear-gradient(135deg, #f39c12 0%, #ff6b6b 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1rem; }
}

.highlight {
    color: var(--primary-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-brand .logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-brand .logo svg {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 2rem 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Molecule Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: contain;
    z-index: 10;
    opacity: 0.9;
    border-radius: 12px;
}

.molecule-animation {
    width: 300px;
    height: 300px;
    position: relative;
}

.orbit {
    position: absolute;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
}

.orbit-2 {
    width: 260px;
    height: 260px;
    top: 20px;
    left: 20px;
}

.electron {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: top 0.5s ease-out, left 0.5s ease-out;
    box-shadow: 0 0 10px var(--accent);
}

.electron-hour {
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    box-shadow: 0 0 12px var(--primary-light);
}

.electron-minute {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

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

.about-card li {
    padding: 0.5rem 0;
    padding-left: 30px;
    position: relative;
}

.about-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Values Section */
.values {
    background: white;
}

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

.value-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.value-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.value-card ul {
    list-style: none;
    text-align: left;
}

.value-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.service-block {
    background: white;
    padding: 60px 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.service-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature {
    padding: 20px;
    border-left: 3px solid var(--accent);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.consultation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.consultation-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.consultation-item:hover {
    background: var(--primary-light);
    color: white;
}

.learning-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.learning-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 5px;
}

.check {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Platforms Section */
.platforms {
    background: white;
}

.platform-category {
    margin-bottom: 50px;
}

.platform-category h3 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.platform-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.platform-item {
    background: var(--bg-light);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-item:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
}

.platform-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.platform-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.platform-icon-item:hover {
    transform: translateY(-5px);
}

.platform-icon-item svg {
    width: 60px;
    height: 60px;
}

.platform-icon-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Contact Section */
.contact {
    background: var(--gradient-primary);
    color: white;
}

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

.contact-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-header h3 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    color: var(--text-dark);
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.contact-title {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

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

.contact-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-brand .logo svg {
    width: 30px;
    height: 30px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Footer Logo */
.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out;
}

/* Blog Styles */
.blog-listing {
    padding: 80px 0;
    min-height: 80vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.blog-card-content {
    padding: 2rem;
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-categories {
    display: flex;
    gap: 0.5rem;
}

.category-tag {
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.blog-card-title {
    margin: 1rem 0;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-dark);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin: 1rem 0;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.read-more {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.blog-author {
    color: var(--text-light);
    font-size: 0.9rem;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Individual Blog Post Styles */
.blog-post {
    padding: 80px 0;
    min-height: 80vh;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.post-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-date, .post-author {
    display: inline-block;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.post-content ul, .post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.post-content li {
    margin: 0.5rem 0;
}

.post-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

.post-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.post-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.post-content pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Figure and Figcaption Styles */
.post-content figure {
    margin: 2rem 0;
    text-align: center;
}

.post-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow-sm);
}

.post-content figcaption {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.75rem;
    padding: 0 1rem;
    line-height: 1.5;
}

.post-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.prev-post, .next-post {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.prev-post:hover, .next-post:hover {
    color: var(--primary-light);
}

.back-to-blog {
    text-align: center;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
    }
}