/* ========================================
   KEPLER ALGORITHMS - WEBSITE STYLES
   Quantum Blue Theme - Dark Professional
   ======================================== */

/* CSS Variables - Quantum Blue Palette */
:root {
    --primary-deep-quantum: #0a3d62;
    --primary-neural-blue: #1a5490;
    --primary-tech-cyan: #3498db;
    --accent-electric-teal: #16a085;
    --neutral-slate-gray: #2c3e50;
    --neutral-light-gray: #ecf0f1;
    --base-white: #ffffff;
    --base-black: #0d1117;
    --dark-bg: #0d1117;
    --dark-bg-secondary: #161b22;
    --dark-border: #30363d;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition-smooth: all 0.3s ease;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-light-gray);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--base-white);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--neutral-light-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* ========================================
   LOGO STYLING
   ======================================== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--dark-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--neutral-light-gray);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-tech-cyan);
}

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

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary-tech-cyan), var(--accent-electric-teal));
    color: var(--base-white);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--base-white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

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

#particleCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-tech-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--base-white), var(--primary-tech-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-light-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-tech-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--neutral-light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-tech-cyan), var(--accent-electric-teal));
    color: var(--base-white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.5);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--base-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-light-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   VISION SECTION
   ======================================== */
.vision {
    padding: 6rem 0;
    background: var(--dark-bg-secondary);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vision-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-smooth);
    text-align: center;
}

.vision-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-tech-cyan);
    box-shadow: 0 12px 32px rgba(52, 152, 219, 0.2);
}

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

.vision-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-tech-cyan);
}

.vision-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   BUSINESS LINES SECTION
   ======================================== */
.business-lines {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.business-lines-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.business-line {
    background: var(--dark-bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-smooth);
}

.business-line:hover {
    border-color: var(--primary-tech-cyan);
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.15);
}

.business-line-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.business-line-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.business-line-title {
    font-size: 1.6rem;
    color: var(--base-white);
    margin-bottom: 0.5rem;
}

.business-line-tag {
    display: inline-block;
    background: rgba(52, 152, 219, 0.15);
    color: var(--primary-tech-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.business-line-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.business-line-metrics {
    display: flex;
    gap: 3rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--neutral-light-gray);
    margin-bottom: 0.3rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-tech-cyan);
}

.business-line-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.business-line-features li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.business-line-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-electric-teal);
    font-weight: bold;
}

/* ========================================
   WHY KEPLER SECTION
   ======================================== */
.why-kepler {
    padding: 6rem 0;
    background: var(--dark-bg-secondary);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-smooth);
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-electric-teal);
    box-shadow: 0 8px 24px rgba(22, 160, 133, 0.2);
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-electric-teal);
}

.advantage-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   INSIGHTS SECTION
   ======================================== */
.insights {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-tech-cyan);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.2);
}

.insight-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-advisory { background: rgba(52, 152, 219, 0.2); color: var(--primary-tech-cyan); }
.tag-agents { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.tag-synthetic { background: rgba(22, 160, 133, 0.2); color: var(--accent-electric-teal); }
.tag-pharma { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.tag-quantum { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.tag-market { background: rgba(52, 73, 94, 0.2); color: #95a5a6; }

.insight-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--base-white);
}

.insight-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.insight-link {
    color: var(--primary-tech-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
}

.insight-link:hover {
    color: var(--accent-electric-teal);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 6rem 0;
    background: var(--dark-bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    padding: 1.5rem;
    background: var(--dark-bg);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
}

.contact-detail strong {
    display: block;
    color: var(--primary-tech-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.contact-detail p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--base-white);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem;
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    background: var(--dark-bg);
    color: var(--base-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-tech-cyan);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-tech-cyan), var(--accent-electric-teal));
    color: var(--base-white);
    border: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-electric-teal);
    color: var(--base-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    color: var(--base-white);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--neutral-light-gray);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 350px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-slogan {
    color: var(--primary-tech-cyan);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
}

.footer-tagline {
    color: var(--neutral-light-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--neutral-light-gray);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--primary-tech-cyan);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
}

.footer-bottom p {
    color: var(--neutral-light-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.company-reg {
    font-size: 0.85rem;
    color: rgba(236, 240, 241, 0.6);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 17, 23, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-tagline {
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .vision-grid,
    .advantages-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .business-line-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .business-line-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .footer-logo img {
        height: 45px;
    }
    
    .business-line,
    .vision-card,
    .advantage-card,
    .insight-card {
        padding: 1.5rem;
    }
}