/* ========================================= */
/* sCloud Investments - Style Sheet (style.css) */
/* Goal: Modern, trustworthy, professional financial aesthetic. */
/* Colors Palette: Deep Navy/Charcoal (Primary), Gold/Teal (Accent), Clean White/Light Gray (Background) */
/* ========================================= */

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

body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif; /* Using professional web fonts */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 2. Typography & Headings --- */
h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    font-weight: 700;
}

h1 { font-size: 2.5rem; color: #0d1b2a; }
h2 { font-size: 2.2rem; color: #0d1b2a; margin-bottom: 0.3em;}
h3 { font-size: 1.8rem; color: #1b4e76; border-bottom: 3px solid #e0e0e0; padding-bottom: 10px; display: inline-block;}

/* --- 3. Buttons & Calls to Action (CTA) --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    cursor: pointer;
    border: none;
}

/* Primary CTA (e.g., Login) */
.btn-primary {
    background-color: #0056b3; /* Deep Blue */
    color: white !important;
}
.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

/* Secondary CTA (e.g., Explore) */
.btn-secondary {
    background-color: transparent;
    border: 2px solid #1b4e76;
    color: #1b4e76 !important;
}
.btn-secondary:hover {
    background-color: #1b4e76;
    color: white !important;
    transform: translateY(-2px);
}

/* Large CTA (Hero) */
.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Small CTA (Cards) */
.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}


/* --- 4. Header & Navigation --- */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 2rem;
    margin: 0;
}
.logo .highlight {
    color: #ffc107; /* Gold Accent */
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a:hover {
    color: #0d1b2a !important;
    border-bottom: 2px solid #ffc107;
}

/* --- 5. Hero Section --- */
#hero {
    background: linear-gradient(to right, #e8f0f9, #ffffff);
    padding: 80px 0;
    text-align: left;
}

#hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: #0d1b2a;
}
.subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
}

/* --- 6. Sections & Padding --- */
.section-padding {
    padding: 80px 0;
}
.bg-light {
    background-color: #f4f7fa;
}

/* --- 7. KPI Grid (Overview) --- */
#overview {
    text-align: center;
}
.kpi-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.kpi-card {
    flex: 1;
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}
.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon-large {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.metric-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0d1b2a;
}
.kpi-card p {
    margin-top: 10px;
    font-size: 1rem;
    color: #666;
}

/* --- 8. Opportunity Cards --- */
.opportunity-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.investment-card {
    background: white;
    border-left: 5px solid #ffc107; /* Gold indicator */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex: 1 1 calc(33% - 30px); /* Responsive grid */
    min-width: 280px;
}

.investment-card h4 {
    color: #1b4e76;
}
.sector {
    display: inline-block;
    background-color: #e9ecef;
    color: #555;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Progress Bar Styling */
.progress-bar-container {
    background-color: #e9ecef;
    height: 10px;
    border-radius: 5px;
    margin: 20px 0;
}
.progress-bar {
    height: 100%;
    background-color: #28a745; /* Green for progress */
    border-radius: 5px;
    transition: width 1s ease-out;
}

/* --- 9. Performance Dashboard Placeholder --- */
#performance {
    text-align: center;
}
.dashboard-placeholder {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- 10. Footer --- */
.main-footer {
    background-color: #0d1b2a; /* Deep Navy Background */
    color: white;
    padding: 50px 0 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.main-footer h4 {
    color: #ffc107; /* Gold */
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}
.social-links a:hover {
    background-color: #ffc107;
    color: #0d1b2a;
}


/* ========================================= */
/* MEDIA QUERIES (Responsiveness) */
/* ========================================= */

@media (max-width: 1024px) {
    .hero-content h2 { font-size: 3rem; }
    .kpi-grid, .opportunity-grid { flex-direction: column; gap: 30px;}
    .investment-card { flex: 1 1 calc(50% - 30px); }
}

@media (max-width: 768px) {
    /* Header adjustments */
    .main-header .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .btn-login { display: none; } /* Hide login button on small screens if space is tight */

    /* Hero adjustments */
    #hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-graphic {
        margin-top: 30px;
    }
    .subtitle {
        font-size: 1.1rem;
    }

    /* General adjustments */
    .section-padding { padding: 50px 0;}
    h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .kpi-grid, .opportunity-grid { flex-direction: column; }
    .investment-card { min-width: 100%; }
    .btn { padding: 10px 20px; font-size: 1rem;}
}