:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --dark-color: #1e293b;
    --darker-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--light-color);
    line-height: 1.6;
    background-color: var(--darker-color);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.cta-primary, .cta-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

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

.cta-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cta-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-spinner.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar Styles */
.navbar {
    font-family: 'Space Grotesk', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: var(--darker-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--light-color);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
    opacity: 0.95;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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

.nav-item:hover {
    color: var(--light-color);
}

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

.nav-cta {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
    padding: 5px 10px;
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    min-height: 60px;
}

.hero h1 .typed-text {
    color: var(--light-color);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-item {
    background-color: var(--dark-color);
    padding: 20px;
    border-radius: 10px;
    min-width: 150px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Trust Badges */
.trust-badges {
    padding: 40px 0;
    background-color: var(--dark-color);
    text-align: center;
}

.trust-badges p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.badges-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.badge-item {
    padding: 10px 25px;
    background-color: var(--darker-color);
    border-radius: 50px;
    color: var(--light-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--darker-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.service-card {
    perspective: 1000px;
    width: 100%;
    max-width: 350px;
    height: 400px;
    background: transparent;
}

.service-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .service-flip {
    transform: rotateY(180deg);
}

.service-front, .service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: var(--dark-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-back {
    transform: rotateY(180deg);
    overflow-y: auto;
    justify-content: flex-start;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-front h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.service-back h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light-color);
}

.service-back ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    text-align: left;
    color: var(--gray-color);
    font-size: 0.85rem;
}

.service-back ul li {
    margin-bottom: 8px;
}

.service-back .cta-primary {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    margin-top: auto;
}

.service-back::-webkit-scrollbar {
    width: 6px;
}

.service-back::-webkit-scrollbar-track {
    background: var(--darker-color);
}

.service-back::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Solutions */
.solutions {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.solutions-tabs {
    border-radius: 10px;
    background-color: var(--darker-color);
    padding: 20px;
}

.tab-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tab-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tab-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.tab-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    max-width: 600px;
}

.tab-text ul {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    list-style: none;
    width: 100%;
}

.tab-text ul li {
    margin-bottom: 10px;
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.tab-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 8px;
}

.tab-text .cta-button {
    margin-top: auto;
}

.tab-text .cta-secondary {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 auto;
}

/* About */
.about {
    padding: 100px 0;
    background-color: var(--darker-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-color);
}

.feature-item i {
    color: var(--primary-color);
}

/* Resources */
.resources {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.resource-card {
    background-color: var(--darker-color);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    max-width: 350px;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

.resource-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.testimonial-card {
    background-color: var(--darker-color);
    border-radius: 10px;
    padding: 30px;
    max-width: 350px;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    color: var(--light-color);
    margin-bottom: 25px;
}

.testimonial-author {
    text-align: center;
}

.author-name {
    font-weight: 700;
    color: var(--light-color);
}

.author-title, .author-company {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--light-color);
    margin-bottom: 30px;
}

/* Contact */
.contact {
    padding: 100px 0;
    background-color: var(--darker-color);
}

.contact-content {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gray-color);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    flex: 1;
    max-width: 500px;
    background-color: var(--dark-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-color);
    border-radius: 6px;
    background-color: var(--darker-color);
    color: var(--light-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-color);
    opacity: 1;
}

.form-group select {
    appearance: none;
    background: var(--darker-color) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="%2394a3b8"><path d="M2 5l4 4 4-4H2z"/></svg>') no-repeat right 15px center;
    cursor: pointer;
    padding-right: 40px;
    color: var(--gray-color);
}

.form-group select option {
    color: var(--gray-color);
    background-color: var(--darker-color);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    color: var(--light-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .cta-primary {
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    font-size: 1rem;
}

.form-group .cta-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Footer */
.footer {
    display: flex;
    background-color: var(--dark-color);
    padding: 80px 0 0;
}

.footer-content {
    font-family: 'Space Grotesk', sans-serif;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.footer-col h3 {
    color: var(--light-color);
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--gray-color);
}

.footer-col ul li a {
    color: var(--gray-color);
}

.footer-col ul li a:hover {
    color: var(--light-color);
}

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

.copyright {
    color: var(--gray-color);
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--gray-color);
}

.legal-links a:hover {
    color: var(--light-color);
}

.privacy-policy, .terms-of-service {
    padding: 100px 0;
    background-color: var(--darker-color);
}

.with-nav-offset {
    padding-top: 150px;
}

.privacy-policy h2, .terms-of-service h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--light-color);
}

.policy-content, .terms-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.6;
}

.policy-content h3, .terms-content h3 {
    font-size: 1.5rem;
    margin: 20px 0 15px;
    color: var(--light-color);
}

.policy-content p, .terms-content p {
    margin-bottom: 15px;
}

.policy-content ul, .terms-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.policy-content ul li, .terms-content ul li {
    list-style: disc;
    margin-bottom: 10px;
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nav-item {
        padding: 15px 0;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .nav-item::after {
        display: none;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 12px 10px;
        margin-bottom: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: var(--dark-color);
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-btn .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--light-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 120px 0 60px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta a {
        width: 100%;
        max-width: 300px;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .contact-info, .contact-form {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .with-nav-offset {
        padding-top: 150px;
    }
}
