/* style.css */

/* Root variables for colors and fonts */
:root {
    --bg-main: #ffffff;
    --bg-section-alt: #f8f7f5;
    --border-gold: #d4af37;
    --border-gold-dark: #b8860b;
    --font-green: #0d5630;
    --font-dark: #181818;
    --font-muted: #595959;
    --bg-footer: #57473a;
    --font-footer: #c5b9ab;
}

/* Base body and typography styles */
body {
    font-family: 'Roboto Condensed', sans-serif;
    background-color: var(--bg-main);
    color: var(--font-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fjalla One', sans-serif;
    color: var(--font-dark);
}

/* Header and Navigation Styles */
.brand-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    min-height: 120px;
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
}

.header-logo {
    height: 2.5rem; /* 40px */
    width: auto;
}

.ai-factory-logo {
    height: 1.5rem; /* 24px - 40% smaller than 2.5rem */
    width: auto;
}

.ai-factory-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-factory-text {
    font-family: 'Fjalla One', sans-serif;
    font-size: 0.9rem; /* 20% larger than 0.75rem */
    color: var(--font-dark);
    margin-top: 0.25rem;
}



.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.menu-items li {
    position: relative;
    margin-left: 1.5rem;
}

.menu-items a {
    text-decoration: none;
    color: var(--font-dark);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.menu-items a:hover {
    background-color: var(--bg-section-alt);
    color: var(--font-green);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Main title styles */
.main-title {
    font-size: 2rem !important; /* Mobile size */
}
@media (min-width: 768px) {
    .main-title {
        font-size: 3.5rem !important; /* Desktop size */
    }
}


/* Component Card Styles */
.component-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--border-gold);
    transition: transform 0.2s, box-shadow 0.2s;
}

.component-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Card variations for different layers */
.core-layer {
    background: linear-gradient(135deg, #f0f8f4, #e8f5ee);
    color: #0d5630;
    border: 2px solid #0d5630;
}

.adapter-layer {
    background: linear-gradient(135deg, #fefbf2, #fdf8e8);
    color: #b8860b;
    border: 2px solid #d4af37;
}

.concern-layer {
    background: linear-gradient(135deg, #f8f6f4, #f2efeb);
    color: #57473a;
    border: 2px solid #57473a;
}

/* Fix for list spacing within cards */
.component-card ul li {
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
}

.component-card ul li:last-child {
    margin-bottom: 0 !important;
}


/* Footer Styles */
.brand-footer { 
    background-color: var(--bg-footer); 
    color: var(--font-footer); 
}

.footer-link { 
    transition: color 0.3s; 
}

.footer-link:hover { 
    color: white; 
}

.footer-email-link {
    cursor: pointer;
    user-select: text;
}

.footer-email-link span {
    user-select: all;
}

.footer-email-link:hover {
    text-decoration: none;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .menu-items {
        display: none; /* Hide menu on smaller screens for simplicity */
    }
}