/* static/styles.css */

:root {
    --primary: #000033;
    --surface: #ffffff;
    --background: #f5f5f5;
    --text: #1a1a1a;
    --text-light: #666666;
    --border: #e0e0e0;
    --spacing: clamp(1rem, 5vw, 2rem);
    --radius: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white !important;
    border-radius: var(--radius);
}

/* Hero */
.hero {
    padding: 160px 0 80px;
    background: var(--surface);
    text-align: center;
}

.hero-logo {
    height: 120px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-light);
    font-size: clamp(1rem, 3vw, 1.25rem);
}

/* About */
.about {
    padding: var(--spacing) 0;
    background: var(--background);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.signature {
    width: 250px;
    margin-top: 2rem;
    opacity: 0.9;
}

/* Companies */
.companies {
    padding: var(--spacing) 0;
    background: var(--surface);
}

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

.company-card {
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius);
    transition: transform 0.2s ease;
}

.company-card:hover {
    transform: translateY(-4px);
}

.company-card img {
    height: 45px;
    margin-bottom: 1rem;
}

.company-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.company-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-size: 0.875rem;
}

/* Contact Form */
.contact {
    padding: var(--spacing) 0;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.span-2 {
    grid-column: span 2;
}

input, select, button {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    padding: var(--spacing) 0;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-logo {
    height: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 1rem;
    }

    .nav-button {
        width: 100%;
        text-align: center;
    }

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

    .span-2 {
        grid-column: 1;
    }
}

/* Add these new styles for the login page */
.login-section {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 40px;
    background: var(--surface);
}

.login-form {
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.login-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.password-input {
    margin-bottom: 1.5rem;
}

.login-form button {
    padding: 0.75rem;
}

/* Add these styles for the investors page */
.investor-section {
    padding: 160px 0 80px;
    background: var(--surface);
}

.investor-content {
    max-width: 1000px;
    margin: 0 auto;
}

.investor-content h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 500;
}

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

.investor-card {
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius);
    transition: transform 0.2s ease;
}

.investor-card:hover {
    transform: translateY(-4px);
}

.investor-card h3 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.investor-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Add these styles for the business model page */
.business-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.model-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.model-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.chart-container {
    margin: 1.5rem 0;
    text-align: center;
}

.chart-container img {
    max-width: 100%;
    height: auto;
}

.revenue-list {
    list-style: none;
    padding: 0;
}

.revenue-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.revenue-list li:last-child {
    border-bottom: none;
}

.market-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.strategy-content {
    display: grid;
    gap: 1.5rem;
}

.strategy-phase h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.strategy-phase p {
    color: var(--text-light);
}

.investment-opportunity {
    text-align: center;
    padding: 3rem 0;
}

.investment-opportunity h2 {
    margin-bottom: 1rem;
}

.investment-opportunity p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Add these new styles for the specifications page */
.specifications {
    padding: var(--spacing) 0;
    background: var(--surface);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.table-of-contents {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table-of-contents h1 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.table-of-contents h2 {
    font-size: 1rem;
    margin-top: 1rem;
}

.table-of-contents p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.main-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.main-content h2 {
    color: var(--primary);
    margin-top: 2rem;
}

.main-content h3 {
    color: var(--text);
    margin-top: 1.5rem;
}

.main-content p {
    color: var(--text-light);
    margin: 1rem 0;
}

.mermaid {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .table-of-contents {
        display: none;
    }
}

/* Add these styles for the investors page */
.investment-rounds {
    background: var(--surface);
    padding: var(--spacing) 0;
}

.problem-section, 
.market-opportunity, 
.team {
    background: var(--background);
    padding: var(--spacing) 0;
}

.solution-section,
.business-model,
.benefits,
.roadmap {
    background: var(--primary);
    color: white;
    padding: var(--spacing) 0;
}

.dark {
    background: var(--primary);
    color: white;
}

.dark h2,
.dark p {
    color: white;
}

.quotation-gold h2 {
    color: gold;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.3;
}

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

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

.grid-item {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.dark .grid-item {
    background: rgba(255, 255, 255, 0.1);
}

.grid-item img {
    height: 60px;
    margin-bottom: 1rem;
}

.grid-item h2 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.mermaid {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.dark .mermaid {
    background: rgba(255, 255, 255, 0.1);
}

/* Form styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.submit-button {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .grid-container,
    .grid-container-large {
        grid-template-columns: 1fr;
    }
}

/* Add these styles for the full-screen sections */
.full-screen-section {
    /* Existing styles remain... */
    background-size: cover;
    background-position: center;
    position: relative;
    isolation: isolate;  /* Creates a new stacking context */
}

.full-screen-section::before {
    content: '';
    position: absolute;
    inset: 0;  /* Shorthand for top/right/bottom/left: 0 */
    background: inherit;  /* Inherits the background image */
    filter: grayscale(100%) brightness(0.3);  /* Applies grayscale and darkens */
    z-index: -1;  /* Places the overlay behind the content */
}

.section-title {
    position: relative;
    z-index: 1;  /* Ensures text stays above the overlay */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Letter styling */
.letter-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.letter-date {
    text-align: right;
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
}

.letter-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

.letter-greeting {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.letter-body p {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.1rem;
}

.signature {
    width: 250px;
    margin-top: 2rem;
    opacity: 0.9;
}

/* Update the about section styling */
.about {
    padding: var(--spacing) 0;
    background: var(--background);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .letter-content {
        padding: 1.5rem;
    }
    
    .letter-body p {
        font-size: 1rem;
    }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--background);
}

/* Admin Dashboard Styles */
.admin-main {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--background);
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.table-container {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.interest-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

.interest-badge.investing {
    background: #4CAF50;
    color: white;
}

.interest-badge.top_qc {
    background: #2196F3;
    color: white;
}

.interest-badge.fruit_data_kings {
    background: #FF9800;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .table-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 2rem 0;
}

.admin-dashboard h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.user-table th {
    background: var(--surface);
    font-weight: 500;
}

.user-table tr:hover {
    background: var(--surface);
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-bottom: 1rem;
}

.flash-message {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.flash-message.success {
    background: #4CAF50;
    color: white;
}

.flash-message.error {
    background: #f44336;
    color: white;
}

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

.logout-button {
    background: #dc3545;
    margin-left: 1rem;
}

.logout-button:hover {
    opacity: 0.9;
}

/* Adjust the flash message position */
.contact-form + .flash-message {
    margin-top: 2rem;
}

/* Investor Page Styles */
.investor-hero {
    background: var(--primary);
    color: white;
}

.investor-hero h1,
.investor-hero p {
    color: white;
}

.investment-section {
    padding: var(--spacing) 0;
    background: var(--surface);
}

.grid-item {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--background);
    border-radius: var(--radius);
    transition: transform 0.2s ease;
}

.grid-item:hover {
    transform: translateY(-4px);
}

.grid-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.grid-item p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
    color: white;
}

/* Responsive adjustments for investor page */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-item {
        padding: 2rem 1.5rem;
    }
}
