/* styles.css - DataDx Lab */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1B3A5F;
    --deep-blue: #0D47A1;
    --bright-blue: #2B5F9E;
    --cyan: #00BCD4;
    --orange: #FF6F00;
    --light-gray: #F5F7FA;
    --dark-gray: #2C3E50;
    --text-light: #7A9FBF;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(27, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bright-blue), var(--cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--cyan);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cta-button {
    background: linear-gradient(135deg, var(--cyan), var(--bright-blue));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(43, 95, 158, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--cyan), var(--bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 0.8s ease-out 0.6s backwards;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--bright-blue));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid var(--cyan);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--cyan);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideInRight 0.8s ease-out 0.4s backwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.data-flow {
    position: relative;
    width: 100%;
    height: 400px;
}

.data-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bright-blue), var(--cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

.data-node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.data-node:nth-child(2) { top: 60%; left: 5%; animation-delay: 0.5s; }
.data-node:nth-child(3) { top: 40%; right: 10%; animation-delay: 1s; }
.data-node:nth-child(4) { top: 10%; right: 30%; animation-delay: 1.5s; }
.data-node:nth-child(5) { bottom: 10%; right: 20%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Sections */
.features, .industries, .portfolio-preview, .faq-section {
    padding: 6rem 5%;
}

.features {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--dark-gray);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cyan), var(--bright-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Comparison Section */
.comparison {
    padding: 6rem 5%;
    background: white;
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.comparison-column {
    padding: 2rem;
    border-radius: 16px;
}

.old-way {
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border: 2px solid #ddd;
}

.new-way {
    background: linear-gradient(135deg, var(--navy), var(--deep-blue));
    color: white;
    position: relative;
    overflow: hidden;
}

.new-way::before {
    content: 'NEXT-GEN';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--cyan);
    color: var(--navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.comparison-column h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.old-way .comparison-list li {
    border-bottom: 1px solid #ccc;
}

.comparison-list li::before {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.old-way .comparison-list li::before {
    content: '✗';
    color: #999;
    font-weight: 700;
    font-size: 1.2rem;
}

.new-way .comparison-list li::before {
    content: '✓';
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Portfolio Preview */
.portfolio-preview {
    background: white;
}

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

.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-8px);
}

.portfolio-image {
    height: 250px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-dashboard {
    width: 80%;
    height: 80%;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    padding: 2rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(135deg, var(--cyan), var(--bright-blue));
    border-radius: 8px;
    animation: growBar 1s ease-out backwards;
}

.chart-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 85%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 70%; animation-delay: 0.3s; }

@keyframes growBar {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

.placeholder-dashboard.stats {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.stat-box {
    flex: 1;
    height: 100px;
    background: linear-gradient(135deg, var(--bright-blue), var(--cyan));
    border-radius: 12px;
}

.placeholder-dashboard.trend {
    position: relative;
}

.trend-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--bright-blue));
    position: relative;
    top: 50%;
    transform: translateY(-50%) rotate(-10deg);
}

.portfolio-card h3 {
    padding: 1.5rem;
    font-size: 1.5rem;
    color: var(--navy);
}

.portfolio-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--dark-gray);
}

.link-arrow {
    padding: 0 1.5rem 1.5rem;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: transform 0.3s;
}

.link-arrow:hover {
    transform: translateX(5px);
}

/* Industries */
.industries {
    background: var(--light-gray);
}

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

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.industry-card:hover {
    transform: scale(1.05);
    border-color: var(--cyan);
}

.industry-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.industry-card h4 {
    font-size: 1.25rem;
    color: var(--navy);
}

/* FAQ Section */
.faq-section {
    background: var(--light-gray);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--cyan);
    font-weight: 700;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    display: inline-block;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--navy), var(--deep-blue));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--navy);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--cyan);
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Page-specific styles */
.page-hero {
    min-height: 50vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        display: none;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .page-hero h1 {
        font-size: 2.5rem;
    }
}
