* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #f2efe8;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --orange: #ff6b35;
    --orange-light: #ff8c5a;
    --border: rgba(26, 26, 26, 0.1);
    --shadow: rgba(255, 107, 53, 0.1);
}

body.dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #aaa;  /* Changed from #aaa to #c0c0c0 for better contrast */
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, currentColor 1px, transparent 1px),
        linear-gradient(to bottom, currentColor 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

body.dark::before {
    opacity: 0.02;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(242, 239, 232, 0.8);
    border-bottom: 1px solid var(--border);
}

body.dark .nav {
    background: rgba(26, 26, 26, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom right, var(--orange), var(--orange-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(255, 107, 53, 0.2);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
}

.text-orange {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: rgba(26, 26, 26, 0.05);
}

body.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px -5px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.6);
}

body.dark .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 5rem 1rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    backdrop-filter: blur(16px);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--orange);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    padding: 3rem 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s;
}

body.dark .stat-card {
    background: rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    box-shadow: 0 20px 25px -5px var(--shadow);
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

/* Section */
.section {
    padding: 5rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s;
}

body.dark .service-card {
    background: rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 25px -5px var(--shadow);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(to bottom right, var(--orange), var(--orange-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(255, 107, 53, 0.2);
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s;
}

body.dark .testimonial-card {
    background: rgba(255, 255, 255, 0.05);
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px var(--shadow);
}

.stars {
    color: var(--orange);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.testimonial-author strong {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 5rem 1rem;
}

.cta-card {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom right, rgba(255, 107, 53, 0.1), rgba(255, 140, 90, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(255, 107, 53, 0.1);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    backdrop-filter: blur(16px);
    background: rgba(26, 26, 26, 0.05);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem;
    margin-top: 5rem;
}

body.dark .footer {
    background: rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-contact li {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    box-shadow: 0 10px 25px -5px rgba(255, 107, 53, 0.3);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

.footer-links-inline {
    display: flex;
    gap: 1.5rem;
}

.footer-links-inline a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-inline a:hover {
    color: var(--orange);
}

.text-center {
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange);
}

.article-content h3 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--orange);
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Category Filters */
.category-filter {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

body.dark .category-filter {
    background: rgba(255, 255, 255, 0.05);
}

.category-filter:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.category-filter.active {
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(255, 107, 53, 0.3);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--orange);
    font-size: 0.875rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.read-more-btn:hover {
    gap: 0.5rem;
}

.read-more-btn svg {
    transition: transform 0.3s;
}

.read-more-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}