/* Custom styles to supplement Bootstrap */

:root {
    --digilab-blue: #0055a4;
    --digilab-light-blue: #00a8e8;
    --digilab-dark-blue: #003c71;
    --digilab-gray: #f8f9fa;
}

/* Global styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

.main-content {
    flex: 1;
}

/* Navbar customization */
.navbar-brand img {
    height: 45px;
}

.navbar-digilab {
    background: linear-gradient(90deg, var(--digilab-dark-blue), var(--digilab-blue));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher a {
    margin: 0 5px;
    text-decoration: none;
    font-weight: bold;
}

.language-switcher a.active {
    text-decoration: underline;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--digilab-dark-blue), var(--digilab-blue));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 2rem;
}

/* Partner logos section */
.partner-logo {
    max-height: 80px;
    width: auto;
    margin: 1rem;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Partner cards */
.partner-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Card styling */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    color: #212529;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 85, 164, 0.1);
}

.card-header {
    background: linear-gradient(to right, var(--digilab-blue), var(--digilab-light-blue));
    color: white;
    font-weight: 600;
    border: none;
}

/* Activities section */
.activity-item {
    border-left: 4px solid var(--digilab-light-blue);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.activity-item:hover {
    background-color: rgba(0, 168, 232, 0.05);
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--digilab-light-blue);
}

/* Events timeline */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--digilab-blue);
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: -2.5rem;
    width: 2px;
    background-color: var(--digilab-light-blue);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-weight: 600;
    color: var(--digilab-blue);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--digilab-dark-blue), var(--digilab-blue));
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--digilab-light-blue), var(--digilab-blue), var(--digilab-dark-blue));
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.erasmus-disclaimer {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-left: 4px solid var(--digilab-light-blue);
    color: #ffffff;
}

.erasmus-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

/* Contact form */
.contact-form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form label {
    font-weight: 500;
    color: var(--digilab-dark-blue);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--digilab-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 232, 0.15);
}

.contact-form .btn-primary {
    background: linear-gradient(45deg, var(--digilab-blue), var(--digilab-light-blue));
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 85, 164, 0.2);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--digilab-blue);
    border-color: var(--digilab-blue);
}

.btn-primary:hover {
    background-color: var(--digilab-dark-blue);
    border-color: var(--digilab-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 85, 164, 0.2);
}

.btn-outline-primary {
    color: var(--digilab-blue);
    border-color: var(--digilab-blue);
}

.btn-outline-primary:hover {
    background-color: var(--digilab-blue);
    color: white;
}

/* Custom utility classes */
.text-gradient {
    background: linear-gradient(45deg, var(--digilab-blue), var(--digilab-light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.bg-digilab {
    background-color: var(--digilab-blue);
}

.text-digilab {
    color: var(--digilab-blue);
}

/* Logo positioning */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo {
    max-height: 60px;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 30px;
}

/* Improving text readability */
.text-muted {
    color: #6c757d !important;
}

.badge.bg-light {
    background-color: #212529 !important;
    color: #ffffff !important;
}

.bg-light {
    background-color: #f1f2f3 !important;
    color: #212529 !important;
}

.card {
    background-color: #ffffff;
}

.erasmus-disclaimer {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.card-header {
    color: #ffffff;
    font-weight: 600;
}
