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

:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
    scroll-behavior: smooth;
}

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

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--accent-gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-gradient-3);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.cta-button-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--text-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.cta-button-secondary:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solutions Section */
.solutions {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.solution-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.solution-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.solution-card.reverse {
    direction: rtl;
}

.solution-card.reverse > * {
    direction: ltr;
}

.solution-content h3 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.solution-content p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.8;
}

.solution-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-effect {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.solution-card:hover .solution-image {
    opacity: 1;
    transform: scale(1.05);
}

.perception-effect {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.analytics-effect {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%);
    box-shadow: 0 20px 60px rgba(240, 147, 251, 0.3);
}

.intelligence-effect {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    box-shadow: 0 20px 60px rgba(79, 172, 254, 0.3);
}

/* Blog Section */
.blog {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    background: var(--secondary-bg);
}

.blog-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.blog-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-img-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blog-img-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.blog-img-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.blog-content {
    padding: 2rem;
}

.blog-category {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    letter-spacing: -0.5px;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

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

/* Join Section */
.join {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    text-align: center;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
}

.join-content.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.join-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.join-content p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 1;
    padding: 8rem 2rem;
    background: var(--secondary-bg);
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
}

.contact-content.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.contact-content > p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    background: var(--primary-bg);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .solution-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .solution-card.reverse {
        direction: ltr;
    }

    .solution-visual {
        height: 300px;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .solutions,
    .blog,
    .join,
    .contact {
        padding: 4rem 1rem;
    }

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