:root {
    --color-primary: #0072ff; /* Main blue */
    --color-primary-dark-1: #0066cc;
    --color-primary-light-1: #00c5ff;
    --color-secondary: #f2f2f2; /* Background */
    --color-text: #333;
    --color-text-light: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-accent: #0072ff; /* For Gitea buttons/links */
    --font-family-sans: 'Mulish', sans-serif; /* Override Gitea's default font */
}

@font-face {
    font-family: 'Mulish';
    src: url('/assets/fonts/Mulish-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Junction';
    src: url('/assets/fonts/Junction-light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Orbitron';
    src: url('/assets/fonts/Orbitron Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Raleway';
    src: url('/assets/fonts/Raleway-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'TheNeueBlack';
    src: url('/assets/fonts/TheNeue-Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Global overrides for Gitea */
body, .ui {
    font-family: var(--font-family-sans);
    background-color: var(--color-secondary);
    color: var(--color-text);
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: white;
    color: black;
    text-align: left;
    padding-bottom: 8px;
}

header img {
    max-width: 300px;
    height: auto;
    display: block;
    margin-bottom: 0;
    padding: 20px 0 10px 30px;
}

/* Hero section */
.hero {
    position: relative;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light-1));
    min-height: 300px;
    padding: 150px 50px 100px;
    text-align: center;
    font-size: 24px;
    color: black;
    box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, 0.3), inset 0 -10px 10px -10px rgba(0, 0, 0, 0.3);
}

.hero strong {
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 104, 133, 0.3);
    font-size: 24px;
    transition: font-size 0.3s ease-in-out;
    color: black;
}

.hero strong:hover {
    font-size: 28px;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave img {
    display: block;
    width: 100%;
    height: auto;
}

/* Services/content sections */
.services {
    position: relative;
    padding: 20px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 4px 8px var(--color-shadow);
    max-width: 1200px;
    width: 88%;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    z-index: -1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.service-card {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-primary);
}

.service-card.featured {
    background-color: var(--color-primary);
    color: white;
    padding: 30px;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-card h4 {
    display: flex;
    align-items: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card h4 i {
    margin-right: 10px;
    display: inline-flex;
    vertical-align: middle;
}

.service-card h4 span {
    display: inline-block;
    vertical-align: middle;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 110px;
    left: 50px;
    right: 50px;
    background-color: rgba(255, 255, 255, 1.0);
    padding: 15px 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: left;
}

.navbar ul li {
    display: inline;
    margin: 0 15px;
}

.navbar ul li a {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    text-decoration: none;
    color: var(--color-primary);
    border-radius: 20px;
    padding: 8px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar ul li a:hover {
    background-color: var(--color-primary);
    color: white;
}

.navbar ul li a.active {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        top: 140px;
        left: 20px;
        right: 20px;
    }
    .navbar ul {
        justify-content: left;
    }
}

@media (max-width: 500px) {
    .navbar {
        left: 20px;
        right: 20px;
    }
    .navbar ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .navbar ul li {
        margin: 5px;
        flex-basis: 100%;
    }
    .hero {
        min-height: 390px;
        padding: 200px 20px 100px;
    }
}

/* Gitea-specific overrides (e.g., buttons, containers) */
.ui.button {
    background-color: var(--color-primary);
    color: white;
}
.ui.container {
    max-width: 1000px !important;
    margin: 0 auto;
}
.ui.header {
    color: var(--color-text);
}
