:root {
    --primary-blue: #0056b3;
    --bg-page: #f8fafc;
    --bg-unit: #ffffff;
    --text-dark: #1e293b;
    --text-grey: #64748b;
    --border: #e2e8f0;
    --transition-speed: 0.3s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #0f172a;
        --bg-unit: #1e293b;
        --text-dark: #f1f5f9;
        --text-grey: #94a3b8;
        --border: #334155;
    }
    .tag {
        background: #334155;
        color: #cbd5e1;
        border-color: #475569;
    }
    .coming-soon-card {
        background: rgba(30, 41, 59, 0.3);
        border-color: #475569;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.unit {
    background: var(--bg-unit);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    margin-top: 5px;
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: border-top-color var(--transition-speed) ease;
}

.unit:hover {
    border-top-color: var(--primary-blue);
}

.header-unit {
    border-left: 6px solid var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-text h1 {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.role {
    color: var(--primary-blue);
    font-weight: 600;
    margin: 4px 0;
}

.uni-details {
    font-size: 0.9rem;
    color: var(--text-grey);
    font-weight: 500;
}

.unit-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 35px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-subtitle i {
    color: var(--primary-blue);
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
}

.unit-subtitle:first-of-type {
    margin-top: 10px;
}

.section-divider {
    border: 0;
    border-top: 1px dashed var(--border);
    margin: 30px 0;
}

.slides-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.slides-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-sizing: border-box;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.1);
}

.project-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00a8ff;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
}

.tag {
    font-size: 0.7rem;
    background: #f1f5f9;
    color: var(--text-grey);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 6px;
    margin-top: 6px;
    display: inline-block;
    border: 1px solid var(--border);
    user-select: none;
}

.p-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.p-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.coming-soon-card {
    background: rgba(248, 250, 252, 0.4);
    border: 2px dashed #cbd5e1;
    text-align: center;
    padding: 50px 30px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.coming-soon-card:hover::before {
    left: 100%;
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.1);
}

.coming-soon-content {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.coming-soon-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.coming-soon-card:hover .coming-soon-icon {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.coming-soon-title {
    font-size: 1.5rem;
    color: #64748b;
    margin: 10px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.coming-soon-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 10px;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    .coming-soon-card {
        background: rgba(30, 41, 59, 0.3);
        border-color: #475569;
        backdrop-filter: blur(10px);
    }
    
    .coming-soon-card:hover {
        background: rgba(30, 41, 59, 0.5);
        border-color: var(--primary-blue);
        box-shadow: 0 10px 25px rgba(0, 86, 179, 0.2);
    }
    
    .coming-soon-icon {
        color: #64748b;
    }
    
    .coming-soon-card:hover .coming-soon-icon {
        color: #60a5fa;
    }
    
    .coming-soon-title {
        color: #cbd5e1;
    }
    
    .coming-soon-subtitle {
        color: #94a3b8;
    }
}

.cert-entry {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-start;
    transition: transform var(--transition-speed) ease;
}

.cert-entry:hover {
    transform: translateX(5px);
}

.cert-icon {
    color: var(--primary-blue);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 3px;
}

.cert-header {
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-speed) ease;
    display: block;
    margin-bottom: 4px;
}

.cert-header:hover {
    color: var(--primary-blue);
}

.cert-org {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin: 4px 0 8px 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.l-card {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
}

.l-card:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: var(--bg-page);
    transform: translateY(-2px);
}

.black-footer {
    background: var(--bg-unit);
    color: var(--text-dark);
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 10px;
    border-top: 3px solid var(--primary-blue);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo-container {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.uni-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.dots-container {
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    flex-shrink: 0;
}

.dot.active {
    background: var(--primary-blue);
    width: 20px;
    border-radius: 4px;
}

.slider-nav-indicator {
    font-size: 0.75rem;
    color: var(--text-grey);
    font-weight: 600;
    margin-left: 10px;
}

@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }
    
    .header-unit {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 6px solid var(--primary-blue);
    }
    
    .logo-container {
        order: 2;
        margin: 0 auto;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coming-soon-card {
        padding: 30px 20px;
    }
    
    .coming-soon-icon {
        font-size: 2.5rem;
    }
    
    .coming-soon-title {
        font-size: 1.3rem;
    }
    
    .unit {
        padding: 20px;
    }
}
