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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: #ffffff;
    overflow-x: hidden;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover {
    color: #dc2626;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="%23e2e8f0" stroke-width="1" opacity="0.4"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #111827;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.hero .subheadline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.cta-button.secondary:hover {
    background: #2563eb;
    color: white;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    color: #111827;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 2px;
}

/* Capabilities Section */
.capabilities {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%23e2e8f0" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.8;
}

.capabilities .container {
    position: relative;
    z-index: 2;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.capability-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.capability-card:hover::before {
    transform: scaleX(1);
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.capability-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.capability-card:hover .capability-icon {
    transform: scale(1.1);
}

.capability-card:nth-child(1) .capability-icon { 
    background: linear-gradient(135deg, #dc2626, #b91c1c); 
}
.capability-card:nth-child(2) .capability-icon { 
    background: linear-gradient(135deg, #2563eb, #1d4ed8); 
}
.capability-card:nth-child(3) .capability-icon { 
    background: linear-gradient(135deg, #16a34a, #15803d); 
}
.capability-card:nth-child(4) .capability-icon { 
    background: linear-gradient(135deg, #7c3aed, #6d28d9); 
}
.capability-card:nth-child(5) .capability-icon { 
    background: linear-gradient(135deg, #ea580c, #dc2626); 
}
.capability-card:nth-child(6) .capability-icon { 
    background: linear-gradient(135deg, #0891b2, #0e7490); 
}

.capability-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111827;
}

.capability-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="hexagons" width="80" height="80" patternUnits="userSpaceOnUse"><polygon points="40,10 70,30 70,60 40,80 10,60 10,30" fill="none" stroke="%23334155" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hexagons)"/></svg>');
    opacity: 0.4;
}

.stats .container {
    position: relative;
    z-index: 2;
}

.stats .section-title {
    color: white;
    margin-bottom: 80px;
}

.stats .section-title::after {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-item h3 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-item h3 .plus-sign {
    font-size: 0.6em;
    opacity: 0.9;
    margin-top: -0.2em;
}

.stat-item p {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Analytics Dashboard Section */
.analytics-dashboard {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
}

.analytics-dashboard .section-title {
    color: white;
}

.analytics-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
}

.last-updated {
    color: #94a3b8;
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    min-height: 200px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h4 {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: 600;
}

.status.active {
    color: #22c55e;
    font-size: 0.9rem;
}

.trend.positive {
    color: #22c55e;
    font-size: 0.9rem;
}

.pipeline-flows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.arrow {
    color: #3b82f6;
    font-weight: bold;
}

.metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row .label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.value-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-row .value {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.change.positive {
    color: #22c55e;
    font-size: 0.8rem;
}

.bid-stream-section {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stream-header h4 {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 600;
}

.bid-rate {
    color: #94a3b8;
    font-size: 0.9rem;
}

.bid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.bid-card {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.bid-card:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bid-id {
    font-family: 'Courier New', monospace;
    color: #64748b;
    font-size: 0.8rem;
}

.status.won {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bid-details {
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="waves" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 Q25,0 50,10 T100,10" fill="none" stroke="%23e2e8f0" stroke-width="1" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23waves)"/></svg>');
    opacity: 0.6;
}

.about .container {
    position: relative;
    z-index: 2;
}

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

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="circuit" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23374151"/><line x1="50" y1="0" x2="50" y2="48" stroke="%23374151" stroke-width="1"/><line x1="50" y1="52" x2="50" y2="100" stroke="%23374151" stroke-width="1"/><line x1="0" y1="50" x2="48" y2="50" stroke="%23374151" stroke-width="1"/><line x1="52" y1="50" x2="100" y2="50" stroke="%23374151" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit)" opacity="0.3"/></svg>');
    opacity: 0.5;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-title {
    color: white;
}

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

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #d1d5db;
    line-height: 1.7;
}

.contact-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s ease;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.contact-btn.linkedin-btn {
    background: linear-gradient(135deg, #0077b5, #005885);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.contact-btn.linkedin-btn:hover {
    background: linear-gradient(135deg, #005885, #004565);
    box-shadow: 0 15px 40px rgba(0, 119, 181, 0.5);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #9ca3af;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #374151;
}

.footer p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-item.animating h3 {
    animation: countUp 0.8s ease;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 20px;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hero {
        padding-top: 80px;
        min-height: 85vh;
        padding-left: 10px;
        padding-right: 10px;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .dashboard-container {
        padding: 20px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .bid-cards {
        grid-template-columns: 1fr;
    }

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

    .contact-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.5rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .capability-card {
        padding: 30px 20px;
    }

    .stat-item {
        padding: 30px 15px;
    }

    .dashboard-container {
        padding: 15px;
    }
}