:root {
    --primary-color: #4a46e0;
    --secondary-color: #1e40af;
    --text-color: #5e5972;
    --heading-color: #2d2b3e;
    --bg-color: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e5e7eb;
    --gradient-start: #4a46e0;
    --gradient-end: #6366f1;
    --gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--heading-color);
}

p {
    margin: 1rem 0;
}

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

/* Navigation */
.navbar {
    background: #222429;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a5a7ff;
}

.cta-button {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 6rem 0 5rem;
    margin-top: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.133 7-7s-3.134-7-7-7-7 3.133-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.133 7-7s-3.134-7-7-7-7 3.133-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.2rem;
    margin: 2rem auto 3rem;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.cta-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.2rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
}


h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

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

.services h3 {
    margin-bottom: 1rem;
}

/* Why Us Section */
.why-us ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

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

.why-us li:last-child {
    border-bottom: none;
}

.why-us strong {
    color: var(--primary-color);
}

/* Contact Form */
.contact {
    background: var(--light-bg);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    max-width: 600px;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background-color: white;
    color: var(--text-color);
}

.form-group select {
    padding-right: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e5972' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-button:hover {
    background: var(--secondary-color);
}

.contact-alternative {
    text-align: center;
    margin-top: 2rem;
    color: #666;
}

.contact-alternative a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button-large {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Page Content */
.page-content {
    padding: 6rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.page-content article {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Page Specific */
.contact-info {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Research Section */
.research-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.research-card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
}

.research-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.research-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.research-card h2 a:hover {
    color: var(--primary-color);
}

.research-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.research-tags {
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    background: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

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

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

.read-more:hover {
    color: var(--secondary-color);
}

/* Research Article */
.research-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    color: #666;
    margin-bottom: 1rem;
}

.article-tags {
    margin-top: 1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.article-content pre {
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content code {
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-cta {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.article-cta h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.article-cta p {
    margin: 1rem 0 1.5rem;
}

.article-cta .cta-button {
    text-decoration: none;
}

/* Services Page */
.services-detailed {
    margin-top: 3rem;
}

.service-category {
    margin-bottom: 3rem;
}

.service-category h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.service-items {
    display: grid;
    gap: 2rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.service-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.services-cta {
    background: var(--gradient);
    color: white;
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 4rem;
}

.services-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive */
/* Taxonomy Pages - Categories and Tags */
.categories-list .grid,
.tags-cloud {
    margin-top: 2rem;
}

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

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.category-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.category-card .count {
    color: #666;
    font-size: 0.9rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s, transform 0.3s;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tag-item .count {
    font-size: 0.85rem;
    opacity: 0.7;
}

.category-articles,
.tag-articles {
    padding: 3rem 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.article-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.article-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card h2 a:hover {
    color: var(--primary-color);
}

.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card .meta {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin: 1.5rem auto 2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .page-content {
        padding: 4rem 0 2rem;
    }
}
