/* ============================================
   FINDATA - DeepMind-Inspired Design
   From Data to Insights
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-hover: #252525;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Accent Colors */
    --accent-blue: #4285f4;
    --accent-green: #34a853;
    --accent-yellow: #fbbc04;
    --accent-red: #ea4335;
    --accent-purple: #a855f7;
    --accent-cyan: #22d3ee;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px 0;
    --section-padding-sm: 80px 0;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 100px;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

.menu-toggle:hover span {
    background: var(--text-secondary);
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.nav-brand:hover {
    background: var(--bg-hover);
}

.nav-logo {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.brand-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-arrow {
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.nav-brand:hover .dropdown-arrow {
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 100px 24px 40px;
}

.mobile-link {
    padding: 20px 0;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-pause {
    position: absolute;
    bottom: 100px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.hero-pause:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.hero-scroll {
    position: absolute;
    bottom: 100px;
    right: 100px;
    display: flex;
    gap: 8px;
}

.scroll-prev,
.scroll-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.scroll-prev:hover,
.scroll-next:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 14px 16px;
}

.btn-text:hover {
    color: var(--text-primary);
}

.btn-text i {
    font-size: 12px;
    transition: var(--transition-normal);
}

.btn-text:hover i {
    transform: translateX(4px);
}

.center-btn {
    display: block;
    margin: 48px auto 0;
    width: fit-content;
}

/* ============================================
   Products Section
   ============================================ */
.products-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.product-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.product-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.product-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent-blue);
}

.product-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.product-links {
    margin-bottom: 24px;
}

.product-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.product-link:hover {
    color: var(--text-primary);
}

.product-link i {
    font-size: 10px;
    transition: var(--transition-normal);
}

.product-link:hover i {
    transform: translateX(4px);
}

.learn-more {
    font-size: 14px;
    color: var(--text-secondary);
}

.learn-more:hover {
    color: var(--text-primary);
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.view-all:hover {
    background: var(--bg-tertiary);
}

.view-all i {
    font-size: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.news-card:hover {
    background: var(--bg-tertiary);
}

.news-card-large {
    grid-row: span 2;
}

.news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-card-large .news-image {
    height: 100%;
    min-height: 400px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-gradient {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
}

.gradient-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-placeholder.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.news-content {
    padding: 24px;
}

.news-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.news-date,
.news-category {
    font-size: 13px;
    color: var(--text-tertiary);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.news-link:hover {
    color: var(--text-primary);
}

.news-link i {
    font-size: 10px;
    transition: var(--transition-normal);
}

.news-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.link-group h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.link-group > p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.link-group li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.link-group li i {
    width: 20px;
    color: var(--accent-blue);
}

.link-more {
    font-size: 14px;
    color: var(--text-secondary);
}

.link-more:hover {
    color: var(--text-primary);
}

/* ============================================
   Research Section
   ============================================ */
.research-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.research-section .section-header {
    flex-direction: column;
    align-items: flex-start;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.research-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-normal);
}

.research-card:hover {
    background: var(--bg-tertiary);
}

.research-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-blue);
    background: rgba(66, 133, 244, 0.1);
    border-radius: var(--radius-md);
}

.research-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.research-card p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ============================================
   Team Section
   ============================================ */
.team-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.team-section .section-header {
    justify-content: center;
    margin-bottom: 48px;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--bg-tertiary);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.team-card p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ============================================
   Careers Section
   ============================================ */
.careers-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.careers-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.careers-title {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 16px;
}

.careers-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.value-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}

.value-card i {
    font-size: 32px;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-tertiary);
}

.careers-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.careers-notice i {
    color: var(--accent-blue);
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    padding: 60px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.newsletter-section .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-links span {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links a {
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-links a:hover {
    color: var(--text-primary);
}

.newsletter-form p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.newsletter-form form {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.newsletter-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    background: #5a95f5;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-primary);
}

.footer-top {
    margin-bottom: 60px;
}

.footer-tagline {
    font-size: 32px;
    font-weight: 400;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-col > p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-col li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-col li i {
    width: 16px;
    color: var(--text-muted);
}

.footer-col a {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.footer-brand span {
    font-size: 18px;
    font-weight: 500;
}

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card-large {
        grid-row: auto;
    }
    
    .news-card-large .news-image {
        min-height: 240px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hero-pause,
    .hero-scroll {
        display: none;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .newsletter-form form {
        flex-direction: column;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}
