/* About Page - Company Overview/Identity Section */

/* ======= Company Overview Section ======= */
.company-overview {
    padding: 8rem 0;
    background-color: var(--color-background);
    position: relative;
}

.overview-container {
    max-width: var(--max-width-standard);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* Center the header underline when section is center-aligned */
.company-overview .section-header.center-aligned .header-underline {
    margin-left: auto;
    margin-right: auto;
}

/* More symmetric grid layout with fixed proportions */
.overview-grid {
    display: grid;
    grid-template-columns: minmax(300px, 3fr) minmax(300px, 2fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: stretch; /* Make items stretch to match heights */
}

/* Terminal Card */
.terminal-card {
    background-color: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%; /* Ensure full height */
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.terminal-title {
    color: var(--color-text-secondary);
    font-family: monospace;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: monospace;
    flex-grow: 1; /* Allow body to grow to fill space */
    display: flex;
    flex-direction: column;
    min-height: 300px; /* Minimum height for smaller screens */
    max-height: 500px; /* Maximum height to prevent excessive growth */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.command-line {
    color: var(--color-primary);
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.output-text {
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent);
}

.output-text.normal-output {
    color: var(--color-text-secondary);
    border-left: 2px solid var(--color-accent);
}

.output-text.highlight-output {
    color: var(--color-primary);
    border-left: 2px solid var(--color-accent);
}

.output-text.purple-output {
    color: var(--color-accent);
    border-left: 2px solid var(--color-accent);
}

/* Stats Grid - Make it a perfect 2x2 grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: clamp(1rem, 2vw, 2rem);
    height: 100%; /* Match the height of terminal */
}

.stat-card {
    background-color: var(--color-surface);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Gradient borders at top of stat cards */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Ensure the percentage symbol has the same styling */
.stat-value::after {
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem); /* Responsive font size */
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
    }
}

@media (max-width: 768px) {
    .company-overview .overview-container {
        display: flex !important;
        flex-direction: column !important;
    }

    .company-overview .section-header {
        order: -1 !important;
        margin-bottom: 2rem !important;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .terminal-card {
        order: 2;
    }
    
    .stats-grid {
        order: 1;
    }
    
    .stats-grid {
        height: auto;
        aspect-ratio: 3/2; /* Maintain a consistent aspect ratio */
    }
    
    .stat-card {
        padding: 1.25rem;
    }
}

@media (max-width: 1000px) {
    /* Change to a single column layout at 1000px */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Keep the terminal card at full width */
    .terminal-card {
        width: 100%;
    }
    
    /* Make stats grid full width */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 100%; /* Allow full width expansion */
        margin: 0; /* Remove auto margins */
    }
    
    /* Slightly reduce stat card padding on smaller screens */
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    /* Adjust font sizes for better fit */
    .stat-value {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }
    
    .stat-label {
        font-size: clamp(0.85rem, 1.2vw, 1rem);
    }
}

/* Further adjustments for mobile */
@media (max-width: 600px) {
    /* Maintain 2x2 grid but with smaller stats */
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-value {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
} 