/* Font Definitions */
@font-face {
    font-family: 'PxGrotesk';
    src: url('assets/fonts/PxGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'PxGrotesk';
    src: url('assets/fonts/PxGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PxGrotesk';
    src: url('assets/fonts/PxGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* CSS Variables - Simudyne Brand Colors */
:root {
    /* Primary */
    --color-dark-navy: #0F033C;
    --color-vivid-blue: #002DFF;
    
    /* Secondary */
    --color-light-blue: #00B5FF;
    --color-light-gray: #E4E8E8;
    
    /* Diagram Colors */
    --color-deep-blue: #09148A;
    --color-purple: #3D0098;
    --color-magenta: #E61B72;
    
    /* Utility */
    --color-white: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --sidebar-width: 280px;
    --header-height: 120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PxGrotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background: var(--color-dark-navy);
    color: var(--color-white);
    min-height: 100vh;
    line-height: 1.6;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0a0228 0%, var(--color-dark-navy) 100%);
    border-right: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--color-border);
}

.logo {
    height: 28px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
}

.nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    padding: 0 12px;
    margin-bottom: 12px;
}

.nav-list {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 8px;
    color: var(--color-light-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(0, 45, 255, 0.15);
    color: var(--color-white);
}

.nav-link.active {
    background: var(--color-vivid-blue);
    color: var(--color-white);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.nav-link.active .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-muted);
}

.sidebar-footer p {
    margin-bottom: 6px;
}

.patent-link {
    color: var(--color-light-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.patent-link:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.main-header {
    background: linear-gradient(135deg, var(--color-dark-navy) 0%, #0a0228 50%, var(--color-deep-blue) 100%);
    padding: 60px 48px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 45, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(61, 0, 152, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.main-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-light-gray);
}

/* Intro Section */
.intro-section {
    padding: 32px 48px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
}

.intro-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-light-gray);
    max-width: 800px;
}

/* Category Sections */
.category-section {
    padding: 48px;
}

.category-section + .category-section {
    border-top: 1px solid var(--color-border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--color-white);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-vivid-blue);
    border-radius: 10px;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Model Card */
.model-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-vivid-blue);
    box-shadow: 0 20px 40px rgba(0, 45, 255, 0.15);
}

.card-thumbnail {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.thumbnail-placeholder.finance {
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-vivid-blue) 100%);
}

.thumbnail-placeholder.supply {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-magenta) 100%);
}

.thumbnail-placeholder svg {
    opacity: 0.5;
    stroke: var(--color-white);
}

.model-card:hover .thumbnail-placeholder svg {
    opacity: 0.8;
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    flex: 1;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-white);
}

.card-content p {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.card-arrow {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.model-card:hover .card-arrow {
    color: var(--color-vivid-blue);
}

.model-card:hover .card-arrow svg {
    transform: translateX(4px);
}

.card-arrow svg {
    transition: transform 0.2s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .main-header {
        padding: 40px 32px;
    }
    
    .main-header h1 {
        font-size: 32px;
    }
    
    .intro-section,
    .category-section {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .sidebar-header {
        padding: 20px 24px;
    }
    
    .sidebar-nav {
        padding: 16px;
    }
    
    .nav-list {
        display: flex;
        gap: 8px;
    }
    
    .sidebar-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    
    .sidebar-footer p {
        margin-bottom: 0;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        padding: 32px 24px;
    }
    
    .main-header h1 {
        font-size: 28px;
    }
    
    .intro-section,
    .category-section {
        padding: 24px;
    }
}

.thumbnail-sizing {
	width: 90%;
	height: 90%;
	background-size: cover;
	margin: 5%;
}

.overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 50, 50, 0.5);
}

.overlay-text {
  text-align: center;
  padding-top: 20%;
  font-size: 30px;
}

.thumbnail-robotaxi {
	background-image: url("assets/images/robotaxi.PNG");
}

.thumbnail-supply-chain-ai {
	background-image: url("assets/images/supplychain.png");
}

.thumbnail-finance-chiarella {
	background-image: url("assets/images/chiarella.PNG");
}

.thumbnail-finance-lpg {
	background-image: url("assets/images/lpg.PNG");
}

.thumbnail-hk-jockey {
	background-image: url("assets/images/hk-jockey.PNG");
}

.thumbnail-smartgrid-economy {
	background-image: url("assets/images/smartgrid.PNG");
}

.thumbnail-decentralised-control {
	background-image: url("assets/images/smartgrid_control.PNG");
}

.thumbnail-mro-fleet {
	background-image: url("assets/images/mro_fleet.PNG");
}

.thumbnail-finance-ai-invest {
	background-image: url("assets/images/ai_invest.PNG");
}
.thumbnail-finance-options-abm {
	background-image: url("assets/images/options_abm.PNG");
}