/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --dark-gray: #334155;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background-color: #f8fafc;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.logo-icon {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.logo-tech {
    font-weight: 400;
    color: var(--gray);
    margin-left: 0.25rem;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    height: 400px;
}

.floating-tech {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.tech-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tech-icon:nth-child(2) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.tech-icon:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.tech-icon:nth-child(4) {
    top: 70%;
    left: 60%;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Page */
.services-hero {
    padding: 10rem 0 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.services-list {
    padding: 3rem 0;
}

.service-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-content {
    flex: 2;
}

.service-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-content ul {
    margin: 1.5rem 0;
}

.service-content li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Process Section */
.process {
    padding: 3rem 0 5rem;
    background: #f1f5f9;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
}

/* Wiki Page */
.wiki-hero {
    padding: 10rem 0 3rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    text-align: center;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    padding-right: 3.5rem;
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wiki-categories {
    padding: 2rem 0;
    background: white;
    box-shadow: var(--shadow-sm);
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    border: none;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.wiki-articles {
    padding: 3rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark);
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-badge.security {
    background: #fee2e2;
    color: #b91c1c;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.article-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.article-meta i {
    margin-right: 0.25rem;
}

.wiki-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
}

.wiki-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.wiki-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Article Page */
.article-header {
    padding: 8rem 0 2rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.breadcrumbs a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.article-meta i {
    margin-right: 0.25rem;
}

.article-content {
    padding: 3rem 0;
}

.content-wrapper {
    display: flex;
    gap: 3rem;
}

article {
    flex: 2;
    min-width: 0;
}

.article-sidebar {
    flex: 1;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-list a {
    color: var(--dark-gray);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.toc-list a:hover {
    color: var(--primary);
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-articles a {
    color: var(--dark-gray);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.related-articles a:hover {
    color: var(--primary);
}

.article-cta {
    padding: 4rem 0;
    background: #f1f5f9;
    text-align: center;
}

.article-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

/* Footer */
.dynamic-footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--gray);
}

.footer-links h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: var(--gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .service-card, .service-card.reverse {
        flex-direction: column;
    }
    
    .service-image {
        width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .main-nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Contact Page Styles */
.contact-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.map-section {
    padding: 3rem 0;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-hero {
        padding: 6rem 0 2rem;
    }
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.flash-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
}