:root {
    /* Ekimetrics Company Colors */
    --primary-color: #263746; /* Japanese indigo */
    --secondary-color: #00ADD0; /* Turquoise surf */
    --accent-color: #A3DBE8; /* Non-photo blue */
    /* Light off-white main content area */
    --background-color: #F8F8F8;
    /* White tile backgrounds */
    --tile-background: #ffffff;
    /* Dark grey text for readability */
    --text-color: #333333;
    /* Light blue background for sections */
    --section-bg: #A3DBE8;
    /* Success color using turquoise */
    --success-color: #00ADD0;
    --shadow-color: rgba(38, 55, 70, 0.1);
}

body.dark-theme {
    /* Dark theme with Ekimetrics colors */
    --primary-color: #1a1d20;
    --secondary-color: #00ADD0;
    --accent-color: #A3DBE8;
    --background-color: #1e2a3a;
    --tile-background: #2a3748;
    --text-color: #f7fafc;
    --section-bg: #2a3748;
    --success-color: #00ADD0;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Metric Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00ADD0 100%);
    color: white;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(38, 55, 70, 0.15);
    border-bottom: 3px solid var(--secondary-color);
}

.logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.theme-toggle {
    position: absolute;
    right: 2rem;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.8rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: var(--background-color);
    width: 100%;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem;
    justify-items: center;
}

.tile {
    background-color: var(--tile-background);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.15);
    border-color: var(--secondary-color);
}

.tile:hover::before {
    transform: scaleX(1);
}

.tile i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.tile:hover i {
    color: var(--secondary-color);
}

.tile h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-family: 'Inter', 'Metric Bold', sans-serif;
    color: var(--text-color);
}

.tile p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Inter', 'Metric Regular', sans-serif;
    font-weight: 400;
}

body.dark-theme .tile p {
    color: #ccc;
}

/* Add subtle background pattern to tiles */
.tile:nth-child(odd) {
    background: linear-gradient(135deg, var(--tile-background) 0%, rgba(0, 173, 208, 0.05) 100%);
}

.tile:nth-child(even) {
    background: linear-gradient(135deg, var(--tile-background) 0%, rgba(163, 219, 232, 0.05) 100%);
}

/* Dark theme tile backgrounds */
body.dark-theme .tile:nth-child(odd) {
    background: linear-gradient(135deg, var(--tile-background) 0%, rgba(0, 173, 208, 0.1) 100%);
}

body.dark-theme .tile:nth-child(even) {
    background: linear-gradient(135deg, var(--tile-background) 0%, rgba(163, 219, 232, 0.1) 100%);
}

/* Enhanced typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Inter', 'Tiempos Headline Black', 'Metric Bold', serif;
    margin: 0;
    text-align: center;
    flex: none;
    text-shadow: 0 2px 4px rgba(38, 55, 70, 0.1);
    letter-spacing: 0.5px;
}

/* Add a subtle animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    justify-items: center;
    animation: fadeInUp 0.6s ease-out;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    flex-shrink: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #00ADD0 100%);
    color: white;
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 -4px 12px rgba(38, 55, 70, 0.1);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-align: center;
    font-family: 'Inter', 'Metric Light', sans-serif;
    font-weight: 300;
}

.footer-content p:hover {
    opacity: 1;
}

/* Enhanced responsive design */
@media (max-width: 900px) {
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .logo, .theme-toggle {
        position: static;
        margin-bottom: 1rem;
    }
    
    h1 {
        text-align: left;
        font-size: 2rem;
    }
    
    .theme-toggle {
        align-self: flex-end;
        margin-bottom: 0;
    }
    
    .footer-content p {
        font-size: 0.8rem;
    }
} 